package com.oa.gform.client.ui.datasource;
import com.google.gwt.user.client.Command;
import com.oa.gform.client.ui.datamodel.ListItems;


public abstract class GItemsDataSourceImpl<KeyValueType,DataValueType,DependicyValueType> implements GItemsDataSource<KeyValueType,DataValueType,DependicyValueType> {

	public ListItems<KeyValueType,DataValueType,DependicyValueType>  data = new ListItems<KeyValueType,DataValueType,DependicyValueType>();

	public ListItems<KeyValueType,DataValueType,DependicyValueType> getData() {
		return data;
	}

	boolean cacheEnabled = false;
	
	public boolean isCacheEnabled() {
		return cacheEnabled;
	}

	public void setCacheEnabled(boolean cacheEnabled) {
		this.cacheEnabled = cacheEnabled;
	}
	
	public void loadData() {
		this.loadData(null);
	}
	
	@Override
	public void loadData(Command callback) {
		this.loadData(null, callback);
	}
	

	

}
